<!doctype html>
<html >
<head>
<include file="Public:headinc" />
<link rel="stylesheet" href="<?php echo MY_CDN; ?>/admin/css/postinfo.css" />
</head>
<body>
<div style="margin-top:22px;">
	<form id="f1" method="post" action="{:U('Category/doAddCategory')}">
		<table width="100%">
		<tr>
			<td class="y-alignRight" width="100">栏目名<span class="y-highlight">*</span>：</td>
			<td class="y-alignLeft">
				<input type="text" id="catname" name="catname"/>
			</td>
		</tr>
		<tr>
			<td class="y-alignRight" width="100">上级栏目<span class="y-highlight">*</span>：</td>
			<td class="y-alignLeft">
<select id="parentid" name="parentid">
<option value="0">无</option>
<foreach name="cat" item="val">
<option value="{$val['id']}">{$val['catname']}</option>
</foreach>
</select>
			</td>
		</tr>
		<tr>
			<td class="y-alignRight">地址<span class="y-highlight">*</span>：</td>
			<td class="y-alignLeft">
				<input type="text" id="caturl" name="caturl"/> 站外链接以 http:// 开头
			</td>
		</tr>
		<tr>
			<td class="y-alignRight">是否显示</td>
			<td class="y-alignLeft">
				<select id="isshow" name="isshow" >
				<option value="1">是</option>
				<option value="0">否</option>
				</select>
			</td>
		</tr>
		<tr>
			<td class="y-alignRight">链接类型</td>
			<td class="y-alignLeft">
				<select id="linktype" name="linktype" >
				<option value="1">站内链接</option>
				<option value="2">站外链接</option>
				</select>
			</td>
		</tr>
		<tr>
			<td class="y-alignRight">&nbsp;</td>
			<td class="y-alignLeft">
				<input type="button" class="btn btn-inverse" value="提交" onclick="doAddCategory()"/>
			</td>
		</tr>
		</table>
	</form>
</div>
<script charset="utf-8" src="<?php echo MY_CDN; ?>/admin/js/addCategory.js"></script>
</body>
</html>
